package cn.xmy.demo01.servlet;

import cn.xmy.demo01.service.OrderService;
import cn.xmy.demo01.service.TrolleyDaoService;
import cn.xmy.demo01.service.impl.OrderServiceImpl;
import cn.xmy.demo01.service.impl.TrolleyDaoImplService;
import jakarta.servlet.ServletException;
import jakarta.servlet.annotation.WebServlet;
import jakarta.servlet.http.HttpServlet;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;


import java.io.IOException;

@WebServlet("/addOrderServlet")
public class AddOrderServlet extends HttpServlet {
    @Override
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        TrolleyDaoService trolleyDaoService = new TrolleyDaoImplService();
        OrderService orderService = new OrderServiceImpl();
        String[] ids = request.getParameterValues("id");
        for (String id : ids) {
          
        }
    }
    @Override
    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        this.doGet(request, response);
    }
}